package com.ruoyi.control.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.mapper.JhjsThreeHistoryMapper;
import com.ruoyi.control.domain.JhjsThreeHistory;
import com.ruoyi.control.service.IJhjsThreeHistoryService;

/**
 * 10603机巷局扇历史数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-08
 */
@Service
public class JhjsThreeHistoryServiceImpl extends ServiceImpl<JhjsThreeHistoryMapper, JhjsThreeHistory> implements IJhjsThreeHistoryService //修改
{
    @Autowired
    private JhjsThreeHistoryMapper jhjsThreeHistoryMapper;

    /**
     * 查询10603机巷局扇历史数据
     * 
     * @param id 10603机巷局扇历史数据主键
     * @return 10603机巷局扇历史数据
     */
    @Override
    public JhjsThreeHistory selectJhjsThreeHistoryById(String id)
    {
        return jhjsThreeHistoryMapper.selectJhjsThreeHistoryById(id);
    }

    /**
     * 查询10603机巷局扇历史数据列表
     * 
     * @param jhjsThreeHistory 10603机巷局扇历史数据
     * @return 10603机巷局扇历史数据
     */
    @Override
    public List<JhjsThreeHistory> selectJhjsThreeHistoryList(JhjsThreeHistory jhjsThreeHistory)
    {
        return jhjsThreeHistoryMapper.selectJhjsThreeHistoryList(jhjsThreeHistory);
    }

    /**
     * 新增10603机巷局扇历史数据
     * 
     * @param jhjsThreeHistory 10603机巷局扇历史数据
     * @return 结果
     */
    @Override
    public int insertJhjsThreeHistory(JhjsThreeHistory jhjsThreeHistory)
    {
        return jhjsThreeHistoryMapper.insertJhjsThreeHistory(jhjsThreeHistory);
    }

    /**
     * 修改10603机巷局扇历史数据
     * 
     * @param jhjsThreeHistory 10603机巷局扇历史数据
     * @return 结果
     */
    @Override
    public int updateJhjsThreeHistory(JhjsThreeHistory jhjsThreeHistory)
    {
        jhjsThreeHistory.setUpdateTime(DateUtils.getNowDate());
        return jhjsThreeHistoryMapper.updateJhjsThreeHistory(jhjsThreeHistory);
    }

    /**
     * 批量删除10603机巷局扇历史数据
     * 
     * @param ids 需要删除的10603机巷局扇历史数据主键
     * @return 结果
     */
    @Override
    public int deleteJhjsThreeHistoryByIds(String[] ids)
    {
        return jhjsThreeHistoryMapper.deleteJhjsThreeHistoryByIds(ids);
    }

    /**
     * 删除10603机巷局扇历史数据信息
     * 
     * @param id 10603机巷局扇历史数据主键
     * @return 结果
     */
    @Override
    public int deleteJhjsThreeHistoryById(String id)
    {
        return jhjsThreeHistoryMapper.deleteJhjsThreeHistoryById(id);
    }
}
